﻿<Window x:Class="UserControlLib.PlayInfoWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:converter="clr-namespace:Infrastructure.Converters;assembly=Infrastructure"
        WindowStyle="None" ResizeMode="NoResize"  WindowStartupLocation="CenterScreen" 
        WindowState="Maximized" KeyUp="Window_KeyUp">
    <Window.Resources>
        <converter:UriToCachedImageConverter x:Key="uriToImageConv"></converter:UriToCachedImageConverter>
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0" Margin="0 3" Orientation="Horizontal" HorizontalAlignment="Center">
            <TextBlock Text="{Binding DisplayInfo}" Grid.Row="0"></TextBlock>
            <TextBlock Text="{Binding ImageInfo}" Grid.Row="0"></TextBlock>
        </StackPanel>
        <Image Grid.Row="1" Source="{Binding SelectedImage}" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto"
               HorizontalAlignment="Center" VerticalAlignment="Center" Stretch="None"></Image>
    </Grid>
</Window>
